package com.api.cms;

import com.fengmi.cms.entity.Content;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("fengmi-cms")
@RequestMapping("/cms/content")
public interface CmsApi {
    //根据内容分类id获取内容列表
    @RequestMapping("findContentListByCatId/{catId}")
    public List<Content> findContentListByCatId(@PathVariable String catId);
}
